﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace Ahis.Demo.Backend.Contracts
{
    [ServiceContract]
    public interface IPassengerService
    {
        [OperationContract]
        List<Flight> GetFlights();

        [OperationContract]
        PassengerForFlightResponse GetPassengerForFlights(PassengerForFlightRequest request);
    }

    [DataContract]
    public class PassengerForFlightRequest
    {
        [DataMember]
        public string FlightNr { get; set; }

        [DataMember]
        public DateTime FlightDate { get; set; }
    }

    [DataContract]
    public class PassengerForFlightResponse
    {
        [DataMember]
        public List<Passenger> Passengers { get; set; }
    }
}
